package mylibrary.thread.produce_consume;

public class AddEgg implements Runnable{

	private Plate plate;
	
	private Object egg = new Object();
	
	public AddEgg(Plate plate) {
		this.plate = plate;
	}
	
	public void run() {
		
		for(int i=0; i<5; i++) {
			plate.putEgg(egg);
		}
	}
}
